package com.homework.action;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;

import com.homework.util.Constants;

public class LoadWrongAction {
	
	//作业上传失败
	public String homeworkUploadWrong(){
		HttpServletRequest request = ServletActionContext.getRequest();
		String message = Constants.MESSAGE_ERROR_UploadWrong;
		request.setAttribute("message", message);
		return "UploadFail";
	}
	
	//资源上传失败
	public String resourUploadWrong(){
		HttpServletRequest request = ServletActionContext.getRequest();
		String message = Constants.MESSAGE_ERROR_UploadWrong2;
		request.setAttribute("message", message);
		return "UploadFail";
	}
}
